<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>  break문 </title>

<script>

for (var k =0; k<10; k++) { 
       document.write(k); 
        if (k>=5) { 
                break; 
        } 
}
</script>



</head>
<body>
</body>
</html>
